package cn.trigram.validation.annotation.defs;

import cn.trigram.validation.annotation.DateFormatCheck;
import org.hibernate.validator.cfg.ConstraintDef;

/**
 * 提供程序式的校验的编程
 *
 * @version 1.0.0
 * @date 2022/08/04 11:00:25
 * @since 1.0.0
 */
public class DateFormatDef extends ConstraintDef<DateFormatDef, DateFormatCheck> {

    public DateFormatDef() {
        super(DateFormatCheck.class);
    }

    public DateFormatDef value(String value) {
        addParameter("value", value);
        return this;
    }
}
